package com.itheima.reggie.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class Orders {
    //主键id
    private Long id ;
    //订单号
    private String number ;
    //订单状态
    private Integer status ;
    //下单用户id
    private Long userId ;
    //地址id
    private Long addressBookId;
    //下单时间
    private LocalDateTime orderTime ;
    //结账时间
    private LocalDateTime checkoutTime ;
    //支付方式
    private Integer payMethod ;
    //实收金额
    private BigDecimal amount ;
    //备注
    private String remark ;
    //手机号
    private String phone ;
    //地址
    private String address ;
    //用户名
    private String username ;
    //收货人
    private String consignee ;
    //订单细节
    private List<OrderDetail> orderDetails ;
}
